package com.easondongh.spring.config;

import com.easondongh.spring.service.OrderService;
import com.easondongh.spring.service.ProductService;
import com.easondongh.spring.service.UserService;
import org.springframework.beans.factory.annotation.Autowire;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author donghao
 * @date 2021/12/26 20:31
 */
@ComponentScan("com.easondongh")
public class AppConfig {

    @Bean(name = "productService")
    public UserService userService(){
        return new UserService();
    }

//    @Bean(name = "userService")
//    public ProductService userService() {
//        return new ProductService();
//    }

}
